package com.xiaoming.backend.entity.db.example;

import java.util.ArrayList;
import java.util.List;

public class FacilityPOExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FacilityPOExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFacilityIdIsNull() {
            addCriterion("facility_id is null");
            return (Criteria) this;
        }

        public Criteria andFacilityIdIsNotNull() {
            addCriterion("facility_id is not null");
            return (Criteria) this;
        }

        public Criteria andFacilityIdEqualTo(Long value) {
            addCriterion("facility_id =", value, "facilityId");
            return (Criteria) this;
        }

        public Criteria andFacilityIdNotEqualTo(Long value) {
            addCriterion("facility_id <>", value, "facilityId");
            return (Criteria) this;
        }

        public Criteria andFacilityIdGreaterThan(Long value) {
            addCriterion("facility_id >", value, "facilityId");
            return (Criteria) this;
        }

        public Criteria andFacilityIdGreaterThanOrEqualTo(Long value) {
            addCriterion("facility_id >=", value, "facilityId");
            return (Criteria) this;
        }

        public Criteria andFacilityIdLessThan(Long value) {
            addCriterion("facility_id <", value, "facilityId");
            return (Criteria) this;
        }

        public Criteria andFacilityIdLessThanOrEqualTo(Long value) {
            addCriterion("facility_id <=", value, "facilityId");
            return (Criteria) this;
        }

        public Criteria andFacilityIdIn(List<Long> values) {
            addCriterion("facility_id in", values, "facilityId");
            return (Criteria) this;
        }

        public Criteria andFacilityIdNotIn(List<Long> values) {
            addCriterion("facility_id not in", values, "facilityId");
            return (Criteria) this;
        }

        public Criteria andFacilityIdBetween(Long value1, Long value2) {
            addCriterion("facility_id between", value1, value2, "facilityId");
            return (Criteria) this;
        }

        public Criteria andFacilityIdNotBetween(Long value1, Long value2) {
            addCriterion("facility_id not between", value1, value2, "facilityId");
            return (Criteria) this;
        }

        public Criteria andFacilityNameIsNull() {
            addCriterion("facility_name is null");
            return (Criteria) this;
        }

        public Criteria andFacilityNameIsNotNull() {
            addCriterion("facility_name is not null");
            return (Criteria) this;
        }

        public Criteria andFacilityNameEqualTo(String value) {
            addCriterion("facility_name =", value, "facilityName");
            return (Criteria) this;
        }

        public Criteria andFacilityNameNotEqualTo(String value) {
            addCriterion("facility_name <>", value, "facilityName");
            return (Criteria) this;
        }

        public Criteria andFacilityNameGreaterThan(String value) {
            addCriterion("facility_name >", value, "facilityName");
            return (Criteria) this;
        }

        public Criteria andFacilityNameGreaterThanOrEqualTo(String value) {
            addCriterion("facility_name >=", value, "facilityName");
            return (Criteria) this;
        }

        public Criteria andFacilityNameLessThan(String value) {
            addCriterion("facility_name <", value, "facilityName");
            return (Criteria) this;
        }

        public Criteria andFacilityNameLessThanOrEqualTo(String value) {
            addCriterion("facility_name <=", value, "facilityName");
            return (Criteria) this;
        }

        public Criteria andFacilityNameLike(String value) {
            addCriterion("facility_name like", value, "facilityName");
            return (Criteria) this;
        }

        public Criteria andFacilityNameNotLike(String value) {
            addCriterion("facility_name not like", value, "facilityName");
            return (Criteria) this;
        }

        public Criteria andFacilityNameIn(List<String> values) {
            addCriterion("facility_name in", values, "facilityName");
            return (Criteria) this;
        }

        public Criteria andFacilityNameNotIn(List<String> values) {
            addCriterion("facility_name not in", values, "facilityName");
            return (Criteria) this;
        }

        public Criteria andFacilityNameBetween(String value1, String value2) {
            addCriterion("facility_name between", value1, value2, "facilityName");
            return (Criteria) this;
        }

        public Criteria andFacilityNameNotBetween(String value1, String value2) {
            addCriterion("facility_name not between", value1, value2, "facilityName");
            return (Criteria) this;
        }

        public Criteria andFacilityAdressIsNull() {
            addCriterion("facility_adress is null");
            return (Criteria) this;
        }

        public Criteria andFacilityAdressIsNotNull() {
            addCriterion("facility_adress is not null");
            return (Criteria) this;
        }

        public Criteria andFacilityAdressEqualTo(String value) {
            addCriterion("facility_adress =", value, "facilityAdress");
            return (Criteria) this;
        }

        public Criteria andFacilityAdressNotEqualTo(String value) {
            addCriterion("facility_adress <>", value, "facilityAdress");
            return (Criteria) this;
        }

        public Criteria andFacilityAdressGreaterThan(String value) {
            addCriterion("facility_adress >", value, "facilityAdress");
            return (Criteria) this;
        }

        public Criteria andFacilityAdressGreaterThanOrEqualTo(String value) {
            addCriterion("facility_adress >=", value, "facilityAdress");
            return (Criteria) this;
        }

        public Criteria andFacilityAdressLessThan(String value) {
            addCriterion("facility_adress <", value, "facilityAdress");
            return (Criteria) this;
        }

        public Criteria andFacilityAdressLessThanOrEqualTo(String value) {
            addCriterion("facility_adress <=", value, "facilityAdress");
            return (Criteria) this;
        }

        public Criteria andFacilityAdressLike(String value) {
            addCriterion("facility_adress like", value, "facilityAdress");
            return (Criteria) this;
        }

        public Criteria andFacilityAdressNotLike(String value) {
            addCriterion("facility_adress not like", value, "facilityAdress");
            return (Criteria) this;
        }

        public Criteria andFacilityAdressIn(List<String> values) {
            addCriterion("facility_adress in", values, "facilityAdress");
            return (Criteria) this;
        }

        public Criteria andFacilityAdressNotIn(List<String> values) {
            addCriterion("facility_adress not in", values, "facilityAdress");
            return (Criteria) this;
        }

        public Criteria andFacilityAdressBetween(String value1, String value2) {
            addCriterion("facility_adress between", value1, value2, "facilityAdress");
            return (Criteria) this;
        }

        public Criteria andFacilityAdressNotBetween(String value1, String value2) {
            addCriterion("facility_adress not between", value1, value2, "facilityAdress");
            return (Criteria) this;
        }

        public Criteria andFacilityContactIsNull() {
            addCriterion("facility_contact is null");
            return (Criteria) this;
        }

        public Criteria andFacilityContactIsNotNull() {
            addCriterion("facility_contact is not null");
            return (Criteria) this;
        }

        public Criteria andFacilityContactEqualTo(String value) {
            addCriterion("facility_contact =", value, "facilityContact");
            return (Criteria) this;
        }

        public Criteria andFacilityContactNotEqualTo(String value) {
            addCriterion("facility_contact <>", value, "facilityContact");
            return (Criteria) this;
        }

        public Criteria andFacilityContactGreaterThan(String value) {
            addCriterion("facility_contact >", value, "facilityContact");
            return (Criteria) this;
        }

        public Criteria andFacilityContactGreaterThanOrEqualTo(String value) {
            addCriterion("facility_contact >=", value, "facilityContact");
            return (Criteria) this;
        }

        public Criteria andFacilityContactLessThan(String value) {
            addCriterion("facility_contact <", value, "facilityContact");
            return (Criteria) this;
        }

        public Criteria andFacilityContactLessThanOrEqualTo(String value) {
            addCriterion("facility_contact <=", value, "facilityContact");
            return (Criteria) this;
        }

        public Criteria andFacilityContactLike(String value) {
            addCriterion("facility_contact like", value, "facilityContact");
            return (Criteria) this;
        }

        public Criteria andFacilityContactNotLike(String value) {
            addCriterion("facility_contact not like", value, "facilityContact");
            return (Criteria) this;
        }

        public Criteria andFacilityContactIn(List<String> values) {
            addCriterion("facility_contact in", values, "facilityContact");
            return (Criteria) this;
        }

        public Criteria andFacilityContactNotIn(List<String> values) {
            addCriterion("facility_contact not in", values, "facilityContact");
            return (Criteria) this;
        }

        public Criteria andFacilityContactBetween(String value1, String value2) {
            addCriterion("facility_contact between", value1, value2, "facilityContact");
            return (Criteria) this;
        }

        public Criteria andFacilityContactNotBetween(String value1, String value2) {
            addCriterion("facility_contact not between", value1, value2, "facilityContact");
            return (Criteria) this;
        }

        public Criteria andFacilityTypeIsNull() {
            addCriterion("facility_type is null");
            return (Criteria) this;
        }

        public Criteria andFacilityTypeIsNotNull() {
            addCriterion("facility_type is not null");
            return (Criteria) this;
        }

        public Criteria andFacilityTypeEqualTo(String value) {
            addCriterion("facility_type =", value, "facilityType");
            return (Criteria) this;
        }

        public Criteria andFacilityTypeNotEqualTo(String value) {
            addCriterion("facility_type <>", value, "facilityType");
            return (Criteria) this;
        }

        public Criteria andFacilityTypeGreaterThan(String value) {
            addCriterion("facility_type >", value, "facilityType");
            return (Criteria) this;
        }

        public Criteria andFacilityTypeGreaterThanOrEqualTo(String value) {
            addCriterion("facility_type >=", value, "facilityType");
            return (Criteria) this;
        }

        public Criteria andFacilityTypeLessThan(String value) {
            addCriterion("facility_type <", value, "facilityType");
            return (Criteria) this;
        }

        public Criteria andFacilityTypeLessThanOrEqualTo(String value) {
            addCriterion("facility_type <=", value, "facilityType");
            return (Criteria) this;
        }

        public Criteria andFacilityTypeLike(String value) {
            addCriterion("facility_type like", value, "facilityType");
            return (Criteria) this;
        }

        public Criteria andFacilityTypeNotLike(String value) {
            addCriterion("facility_type not like", value, "facilityType");
            return (Criteria) this;
        }

        public Criteria andFacilityTypeIn(List<String> values) {
            addCriterion("facility_type in", values, "facilityType");
            return (Criteria) this;
        }

        public Criteria andFacilityTypeNotIn(List<String> values) {
            addCriterion("facility_type not in", values, "facilityType");
            return (Criteria) this;
        }

        public Criteria andFacilityTypeBetween(String value1, String value2) {
            addCriterion("facility_type between", value1, value2, "facilityType");
            return (Criteria) this;
        }

        public Criteria andFacilityTypeNotBetween(String value1, String value2) {
            addCriterion("facility_type not between", value1, value2, "facilityType");
            return (Criteria) this;
        }

        public Criteria andLocationLatIsNull() {
            addCriterion("location_lat is null");
            return (Criteria) this;
        }

        public Criteria andLocationLatIsNotNull() {
            addCriterion("location_lat is not null");
            return (Criteria) this;
        }

        public Criteria andLocationLatEqualTo(String value) {
            addCriterion("location_lat =", value, "locationLat");
            return (Criteria) this;
        }

        public Criteria andLocationLatNotEqualTo(String value) {
            addCriterion("location_lat <>", value, "locationLat");
            return (Criteria) this;
        }

        public Criteria andLocationLatGreaterThan(String value) {
            addCriterion("location_lat >", value, "locationLat");
            return (Criteria) this;
        }

        public Criteria andLocationLatGreaterThanOrEqualTo(String value) {
            addCriterion("location_lat >=", value, "locationLat");
            return (Criteria) this;
        }

        public Criteria andLocationLatLessThan(String value) {
            addCriterion("location_lat <", value, "locationLat");
            return (Criteria) this;
        }

        public Criteria andLocationLatLessThanOrEqualTo(String value) {
            addCriterion("location_lat <=", value, "locationLat");
            return (Criteria) this;
        }

        public Criteria andLocationLatLike(String value) {
            addCriterion("location_lat like", value, "locationLat");
            return (Criteria) this;
        }

        public Criteria andLocationLatNotLike(String value) {
            addCriterion("location_lat not like", value, "locationLat");
            return (Criteria) this;
        }

        public Criteria andLocationLatIn(List<String> values) {
            addCriterion("location_lat in", values, "locationLat");
            return (Criteria) this;
        }

        public Criteria andLocationLatNotIn(List<String> values) {
            addCriterion("location_lat not in", values, "locationLat");
            return (Criteria) this;
        }

        public Criteria andLocationLatBetween(String value1, String value2) {
            addCriterion("location_lat between", value1, value2, "locationLat");
            return (Criteria) this;
        }

        public Criteria andLocationLatNotBetween(String value1, String value2) {
            addCriterion("location_lat not between", value1, value2, "locationLat");
            return (Criteria) this;
        }

        public Criteria andLocationLngIsNull() {
            addCriterion("location_lng is null");
            return (Criteria) this;
        }

        public Criteria andLocationLngIsNotNull() {
            addCriterion("location_lng is not null");
            return (Criteria) this;
        }

        public Criteria andLocationLngEqualTo(String value) {
            addCriterion("location_lng =", value, "locationLng");
            return (Criteria) this;
        }

        public Criteria andLocationLngNotEqualTo(String value) {
            addCriterion("location_lng <>", value, "locationLng");
            return (Criteria) this;
        }

        public Criteria andLocationLngGreaterThan(String value) {
            addCriterion("location_lng >", value, "locationLng");
            return (Criteria) this;
        }

        public Criteria andLocationLngGreaterThanOrEqualTo(String value) {
            addCriterion("location_lng >=", value, "locationLng");
            return (Criteria) this;
        }

        public Criteria andLocationLngLessThan(String value) {
            addCriterion("location_lng <", value, "locationLng");
            return (Criteria) this;
        }

        public Criteria andLocationLngLessThanOrEqualTo(String value) {
            addCriterion("location_lng <=", value, "locationLng");
            return (Criteria) this;
        }

        public Criteria andLocationLngLike(String value) {
            addCriterion("location_lng like", value, "locationLng");
            return (Criteria) this;
        }

        public Criteria andLocationLngNotLike(String value) {
            addCriterion("location_lng not like", value, "locationLng");
            return (Criteria) this;
        }

        public Criteria andLocationLngIn(List<String> values) {
            addCriterion("location_lng in", values, "locationLng");
            return (Criteria) this;
        }

        public Criteria andLocationLngNotIn(List<String> values) {
            addCriterion("location_lng not in", values, "locationLng");
            return (Criteria) this;
        }

        public Criteria andLocationLngBetween(String value1, String value2) {
            addCriterion("location_lng between", value1, value2, "locationLng");
            return (Criteria) this;
        }

        public Criteria andLocationLngNotBetween(String value1, String value2) {
            addCriterion("location_lng not between", value1, value2, "locationLng");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}